package com.loto.insurance.oem.web.enumeration;

public enum MenuEnum {
  PRODUCT("产品购买", 0, "", true, AuthorityRoleEnum.NOT_SPECIFIED.getIndex()), PRODUCT_AIR(
	  "航空意外险", 1, "/product/air", false, AuthorityRoleEnum.NOT_SPECIFIED
	      .getIndex()), PRODUCT_TRAVEL("旅游险", 11, "/product/travel", false,
	  AuthorityRoleEnum.NOT_SPECIFIED.getIndex()), ORDER("订单管理", 2, "", true,
	  AuthorityRoleEnum.NOT_SPECIFIED.getIndex()), ORDER_LIST("我的订单", 21,
	  "/order/list", false, AuthorityRoleEnum.NOT_SPECIFIED.getIndex()), POLICY_LIST(
	  "我的保单", 22, "/policy/list", false, AuthorityRoleEnum.NOT_SPECIFIED
	      .getIndex()), ORDER_UNPAID("未支付订单", 23, "/order/unpaid", false,
	  AuthorityRoleEnum.NOT_SPECIFIED.getIndex()), POLICY_PROBLEM("问题保单", 24,
	  "/policy/problem", false, AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , INVOICE("发票管理", 3, "", true, AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , INVOICE_APPLY("发票申领", 1, "/invoice/apply", false,
  // AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , INVOICE_LIST("我的发票", 32, "/nvoice/list", false,
  // AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , INVOICE_ADDRESS("常用邮寄地址", 33, "", false,
  // AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  , ACCOUNT("账户管理", 4, "", true, AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , ACCOUNT_SUPP("充值", 41, "/account/supplement", false,
  // AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  , ACCOUNT_CONSUM("消费明细", 42, "/account/consumption", false,
	  AuthorityRoleEnum.NOT_SPECIFIED.getIndex()), ACCOUNT_PWD("修改登录密码", 43,
	  "/account/pwd", false, AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , SERVICE("服务中心", 5, "", true, AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , SERVICE_FAQ("常见问题", 51, "", false,
  // AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , SERVICE_SUGGESTION("意见反馈", 52, "", false,
  // AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  // , SERVICE_CONTACT("联系客服", 53, "", false,
  // AuthorityRoleEnum.NOT_SPECIFIED.getIndex())
  , TRADE("交易管理", 6, "", true, AuthorityRoleEnum.USERS.getIndex()), TRADE_ORDER_LIST(
	  "订单查询", 61, "/trade/orderlist", false, AuthorityRoleEnum.USERS.getIndex()), TRADE_POLICY_LIST(
	  "保单查询", 62, "/trade/policylist", false, AuthorityRoleEnum.USERS.getIndex()), TRADE_CONSUM(
	  "交易明细", 63, "/trade/consumption", false, AuthorityRoleEnum.USERS.getIndex()), OEM(
	  "OEM管理", 7, "", true, AuthorityRoleEnum.ADMIN.getIndex()), OEM_INFO(
	  "OEM信息", 71, "/oem/info", false, AuthorityRoleEnum.ADMIN.getIndex()), OEM_ACCOUNT_LIST(
	  "用户管理", 72, "/oem/userlist", false, AuthorityRoleEnum.ADMIN.getIndex()), OEM_ACCOUNT_LEVEL(
	  "用户等级管理", 73, "/oem/levellist", false, AuthorityRoleEnum.ADMIN.getIndex());

  private String name;
  private int index;
  private String url;
  private boolean isMain;
  private int roleId;

  private MenuEnum(String name, int index, String url, boolean isMain,
	  int roleId) {
	this.name = name;
	this.index = index;
	this.url = url;
	this.isMain = isMain;
	this.roleId = roleId;
  }

  public String getName() {
	return name;
  }

  public void setName(String name) {
	this.name = name;
  }

  public int getIndex() {
	return index;
  }

  public void setIndex(int index) {
	this.index = index;
  }

  @Override
  public String toString() {
	return String.valueOf(this.index);
  }

  public String getUrl() {
	return url;
  }

  public void setUrl(String url) {
	this.url = url;
  }

  public boolean isMain() {
	return isMain;
  }

  public void setMain(boolean isMain) {
	this.isMain = isMain;
  }

  public int getRoleId() {
	return roleId;
  }

  public void setRoleId(int roleId) {
	this.roleId = roleId;
  }
}
